import {
  signPage,
  signGet,
  signAdd,
  signEdit,
  storeGet,
  storeAdd,
  storeEdit,
  storeRemove,
  storeDetailGet,
  memberDetailGet,
  memberPageGet,
  memberEdit,
  memberAdd,
  areaListGet,
  dicGet,
  coachAdd,
  coachEditSort,
  coachGet,
  coachEnabledGet,
  coachEdit,
  coachDetailGet,
  courseAdd,
  courseEdit,
  courseGetById,
  courseGetList,
  protocolGet,
  protocolEnabledGet,
  protocolAdd,
  protocolEdit,
  protocolGetById,
  coachOrderAdd,
  coachBookedTimeGet,
  appointmentPage,
  appointmentCancel,
  disAppointment,
  writeOffAppointment,
  confirmPayment,
  editPassword,
  resetPassword,
  storeListMy,
  orderGet,
  deviceList,
  deviceAdd,
  deviceEdit,
  userStatistic,
  signCourseUsedStatistic,
  userTrends,
  signCourseUsedRatioStatistic,
  signCourseNameAndMoneyStatistic,
  signCourseTypeAndMoneyStatistic,
  statisticGroupByCoachUserIdAndSaleMode,
  coachSignStatistic,
  coachSignCourseUsedStatistic,
  selectCoachUsedDetail,
  coachVisibleList,
  pageAccessLog,
  courseRemove,
  selectPrivateTimesUsedDetail
} from '@/api/manageApi'
const manage = {
  namespaced: true,
  state: {
  },
  getters: {},
  mutations: {
  },
  actions: {
    SignPage ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        signPage(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    SignGet ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        signGet(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    SignAdd ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        signAdd(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    SignEdit ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        signEdit(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    StoreGet ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        storeGet(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    StoreAdd ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        storeAdd(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    StoreEdit ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        storeEdit(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    StoreRemove ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        storeRemove(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    StoreDetailGet ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        storeDetailGet(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    AreaListGet ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        areaListGet(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    DicGet ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        dicGet(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    CoachAdd ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        coachAdd(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    CoachEditSort ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        coachEditSort(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    CoachGet ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        coachGet(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    CoachEnabledGet ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        coachEnabledGet(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    CoachEdit ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        coachEdit(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    CoachDetailGet ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        coachDetailGet(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    CourseAdd ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        courseAdd(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    MemberDetailGet ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        memberDetailGet(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    MemberPageGet ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        memberPageGet(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    MemberEdit ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        memberEdit(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    MemberAdd ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        memberAdd(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    CourseEdit ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        courseEdit(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    CourseGetById ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        courseGetById(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    CourseGetList ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        courseGetList(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    ProtocolGet ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        protocolGet(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    ProtocolEnabledGet ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        protocolEnabledGet(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    ProtocolAdd ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        protocolAdd(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    ProtocolEdit ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        protocolEdit(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    ProtocolGetById ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        protocolGetById(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    CoachOrderAdd ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        coachOrderAdd(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    CoachBookedTimeGet ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        coachBookedTimeGet(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    AppointmentPage ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        appointmentPage(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    AppointmentCancel ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        appointmentCancel(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    DisAppointment ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        disAppointment(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    WriteOffAppointment ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        writeOffAppointment(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    ConfirmPayment ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        confirmPayment(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    EditPassword ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        editPassword(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    ResetPassword ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        resetPassword(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    StoreListMy ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        storeListMy(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    OrderGet ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        orderGet(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    DeviceList ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        deviceList(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    DeviceAdd ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        deviceAdd(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    DeviceEdit ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        deviceEdit(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    UserStatistic ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        userStatistic(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    SignCourseUsedStatistic ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        signCourseUsedStatistic(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    UserTrends ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        userTrends(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    SignCourseUsedRatioStatistic ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        signCourseUsedRatioStatistic(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    SignCourseNameAndMoneyStatistic ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        signCourseNameAndMoneyStatistic(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    SignCourseTypeAndMoneyStatistic ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        signCourseTypeAndMoneyStatistic(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    StatisticGroupByCoachUserIdAndSaleMode ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        statisticGroupByCoachUserIdAndSaleMode(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    CoachSignStatistic ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        coachSignStatistic(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    CoachSignCourseUsedStatistic ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        coachSignCourseUsedStatistic(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    SelectCoachUsedDetail ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        selectCoachUsedDetail(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    CoachVisibleList ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        coachVisibleList(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    PageAccessLog ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        pageAccessLog(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    CourseRemove ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        courseRemove(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    },
    SelectPrivateTimesUsedDetail ({ state, commit, dispatch }, params) {
      return new Promise((resolve, reject) => {
        selectPrivateTimesUsedDetail(params).then(res => {
          resolve(res)
        }).catch(error => {
          reject(error)
        })
      })
    }
  }
}
export default manage
